package com.ruoyi.patient.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.patient.entity.PatientMutipleRsp;
import com.ruoyi.patient.service.PatientMutipleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 购物车控制类
 *
 * @author ZDL
 */

@RestController
@RequestMapping("/appPatient/appPatientMutiple")
public class PatientMutipleController {

    @Autowired
    private PatientMutipleService mutipleService;

    @GetMapping("/getHospitalInfo")
    public AjaxResult getHospitalInfo(Long hospitalId) {
        try {
            PatientMutipleRsp hospitalInfo = mutipleService.getHospitalInfo(hospitalId);
            return AjaxResult.success(hospitalInfo);
        }catch (Exception e){
            return AjaxResult.error(e.getMessage());
        }

    }
}
